import http from "@/utils/http";

export function getMemOrderAPI() {
  return http({
    url: "/member/order/pre",
  });
}

export function postOrderAPI(data) {
  return http({
    url: "/member/order",
    method: "POST",
    data,
  });
}

export function postOrderNowAPI(data) {
  return http({
    url: "/member/order/pre/now",
    data,
  });
}

export function getOrderDetailAPI(id) {
  return http({
    url: `/member/order/${id}`,
  });
}

// 支付
export function getPayAPI(data){
  return http({
    url:'/pay/wxPay/miniPay',
    data
  })
}